// const { SyncBailHook }  = require('tapable')
const SyncBailHook = require('./SyncBailHook')

class Lesson {
  constructor(){
    this.hooks = {
      arch: new SyncBailHook(['name'])
    }
  }
  
  tap(){
    this.hooks.arch.tap('node', function(name){
      console.log('node',name);
      return '学不下去了'
    })
    this.hooks.arch.tap('react', function(name){
      console.log('react',name);
    })
  }
  start(){
    this.hooks.arch.call('ldx')
  }
}
let l = new Lesson
l.tap()
l.start()